:root {
  --bg: #eef2f8;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #5f6b7a;
  --accent: #1f6feb;
  --accent-strong: #0d5adf;
  --border: rgba(160, 172, 190, 0.52);
  --border-strong: rgba(160, 172, 190, 0.72);
  --border-dashed: rgba(160, 172, 190, 0.35);
  --shadow-soft: 0 20px 60px rgba(9, 25, 60, 0.12);
  --shadow-strong: 0 28px 80px rgba(9, 25, 60, 0.18);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #f7f9fc 0, #eef2f8 45%, #e3ebf7 100%);
}

img {
  display: block;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(238, 243, 251, 0.85);
  color: #10305e;
  font-weight: 700;
  font-size: 12px;
}

.display-mode-toast {
  padding: 10px 22px;
  max-width: 220px;
  border-radius: 999px;
  background: rgba(19, 28, 48, 0.9);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  box-shadow: 0 16px 40px rgba(7, 10, 24, 0.35);
  pointer-events: none;
  z-index: 1400;
}

.primary-button,
.ghost-button {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, #1f6feb, #5c89ff);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(31, 111, 235, 0.28);
  border-color: rgba(31, 111, 235, 0.4);
}

.primary-button:hover {
  background: linear-gradient(135deg, #0d5adf, #4a7cf0);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.9);
  color: #1c2c47;
  border-color: var(--border-strong);
}

.ghost-button:hover {
  background: rgba(230, 240, 255, 0.7);
  color: var(--accent-strong);
}

.is-hidden {
  display: none !important;
}
